export default {
  mounted() {
    // 监听dom宽度变化，刷新echarts
    let dom = document.getElementsByClassName("sideBar")[0];
    dom.addEventListener("transitionend", () => {
      this.chart.resize();
    });
  },
  methods: {
    resize() {
      const { chart } = this
      chart && chart.resize()
    }
  }
}
